polymorphic functionの例文
もっと例文: 1 2
- Polymorphic functions parameterized by the class of some of their arguments are typically called methods.
- The function type can be considered to be a special case of the polymorphic function.
- The following example in Haskell shows a parametrized list data type and two parametrically polymorphic functions on them:
- The class template std : : function provided by C + + 11 is a general-purpose polymorphic function wrapper.
- When being applied to a value a polymorphic function has to change its shape specializing to deal with this particular type of values.